import axios from 'axios'

const instance = axios.create({
  baseURL: 'http://127.0.0.1:8009',
  timeout: 30000,
})

instance.interceptors.request.use((config) => {
  return config
})

instance.interceptors.response.use(({ data }) => {
  return data
}, (e) => {
  console.log(e)
})

export default instance
